home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4826 < prev    next >
Encoding:
Text File  |  1996-08-06  |  795 b   |  28 lines

  1. Path: ehsn25.cen.uiuc.edu!jroberts
  2. From: jroberts@ehsn25.cen.uiuc.edu (robertson jason victor )
  3. Newsgroups: comp.lang.c++
  4. Subject: Namespaces...
  5. Date: 1 Feb 1996 07:57:47 GMT
  6. Organization: University of Illinois
  7. Message-ID: <4eprpr$bs8@vixen.cso.uiuc.edu>
  8. References: <futi.34.00315776@azstarnet.com> <4epr79$n10@dole.uninett.no>
  9. Reply-To: jroberts@uiuc.edu (Jason Robertson)
  10. NNTP-Posting-Host: ehsn25.cen.uiuc.edu
  11.  
  12. I'm curious about g++'s support of namespaces.  It seems to work for
  13. namespace ns1 {
  14.     int i = 10;
  15. };
  16. int i = 100;
  17. main(){
  18.     cout << ns1::i;
  19. }
  20.  
  21. But the 
  22. using ns1::i;
  23. facility isn't there.  Is it just that 2.7.2 hasn't incorporated that part
  24. of it yet, or did the standard change, or is this c++ book I just bought 
  25. imagining things and there is no 'using' facility:) ?
  26.  
  27. Thanks...
  28.